<?php
include_once('Admin.php'); 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./images/adminstyle.css" rel="stylesheet" type="text/css" />
<link rel="Shortcut Icon" href="../favicon.ico">
<link rel="Bookmark" href="../favicon.ico">
<script src="../js/jquery.js" type="text/javascript"></script>
<base target="main">
<script language="javascript">
var showsubmenu = function(i){
	$(".menuclass").hide();
	$("#menu_" + i).show();
};
$(document).ready(function(){
	$(".menuclass table tr:last-child td").css("border-bottom","none"); 
	$(".menuclass:first").show(); 
});
</script>
<style type="text/css">
body{background:#7eacfc;}
.menuclass{font-size:12px; display:none; border:2px solid #FFFFFF; background:#D5DFF9;}
a.left:visited,a.left:link{color:#006666; text-decoration:none;}
a.left:hover{color:#009999;text-decoration:none; padding-top:1px; padding-left:1px;}
.xcms{font-size:12px; color:#666; padding:5px 0 5px 5px; line-height:20px; border:2px solid #FFFFFF; background:#D5DFF9;}
.xcms a{color:#000; color:#666;}
.xDx{border-bottom:1px #FFF solid;}
 </style>
</head>
<body>
<table width="158" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td align="center"><img src="images/admin_left_title.gif" width="158" height="38" border="0"></td>
  </tr>
  <tr> 
    <td height="25" align="center" background="images/admin_left_quit.gif"><a href="ServerEnvironment.php" class="left">管理首页</a> 
      | <a href="Admin.php?Action=Exit" target="_top" class="left">退出</a></td>
  </tr>
  <tr> 
    <td align="center">&nbsp;</td>
  </tr>
</table>
<?php
$Start = array(); 
foreach ($xSystem as $i => &$n){
	if($n[0] == 1){
		if ($n[4] == 0 || $n[4] == 2) $Start[] = $n; 
	}
}
foreach ($nMenu as $i => &$n){
	if($n[0] == 1){
		echo '<table width="158" border="0" align="center" cellpadding="0" cellspacing="0"><tr>';
    	echo '<td height="25" align="center" background="images/admin_left_quit.gif" style="cursor:pointer;" onclick="showsubmenu('.$i.')">'.$n[2].'</td></tr><tr><td>';
		echo '<table border="0" width="100%" cellspacing="0" cellpadding="0" class="menuclass" id="menu_'.$i.'"><tr><td width="100%"><table width="135" align="center" cellpadding="4" border="0" cellspacing="0">';
		foreach ($Start as $v => $w){
			if($w[5] == $n[3]) {
				echo '<tr><td width="15" align="right" class="xDx"><img height="20" src="images/bullet.gif" width="15" border="0"></td>';
				echo "<td class=\"xDx\"><a href=\"{$w[2]}\" class=\"left\">{$w[3]}</a></td>";
        		echo '</tr>';
			}	
		}
		echo '</table></td></tr></table>';
		echo ' </td></tr><tr><td>&nbsp;</td></tr></table>';
	}
}
?>
<br />
</body>
</html>